package net.pinnoocle.playdao.entity.shopPc.coupon;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.pinnoocle.playdao.entity.group.UpdateGroup;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author ye
 * @Description
 * @create 2021-10-28 18:42
 */
@Data
public class CouponListPageVo {

    @ApiModelProperty("优惠券id")
    private String couponId;

    @ApiModelProperty("优惠券名称")
    private String couponName;

    @ApiModelProperty("面值")
    private Double faceValue;

    @ApiModelProperty("满多少可用")
    private Double fullValue;

    @ApiModelProperty("有效期开始时间")
    private String validStartDate;

    @ApiModelProperty("有效期结束时间")
    private String validEndDate;

    @ApiModelProperty("状态 0 上架 1 下架")
    private Integer isDisable;

    @ApiModelProperty("是否过期 0 否 1 是")
    private Integer isInvalid;

    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    @ApiModelProperty(value = "用户优惠券id(为null表示未领取)")
    private String userCouponId;
}
